home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / amos / AMOS_0695.lzh / AMOSLIST / 000093_amos-request@svcs1.digex.net_Sat Jun 17 18:30:43 1995.msg < prev    next >
Internet Message Format  |  1995-07-01  |  4KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id SAA22286;  for  ; Sat, 17 Jun 1995 18:30:41 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id QAA24446 for amos-out; Sat, 17 Jun 1995 16:07:36 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id QAA24443 for <amos-list@svcs1.digex.net>; Sat, 17 Jun 1995 16:07:35 -0400
  4. Received: from phoenix.inka.de (root@phoenix.inka.de [193.197.84.29]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id QAA16280;  for <amos-list@access.digex.net> ; Sat, 17 Jun 1995 16:07:32 -0400
  5. Received: from mips.pfalz.de by phoenix.inka.de with bsmtp
  6.     (Smail3.1.29.1 #14) id m0sN48K-000498C; Sat, 17 Jun 95 22:06 MET DST
  7. Received: from kiste.pfalz.de by mips.pfalz.de with cbsmtp
  8.     (Smail3.1.28.1 #4) id m0sN29t-000Cn8C; Sat, 17 Jun 95 19:59 MET DST
  9. X-ZC-VIA: 19950617161048W+1@kiste.pfalz.de
  10. X-ZC-VIA: 19950617121934W+1@sixpack.pfalz.de
  11. Subject: Re: Music help
  12. Message-Id: <v4csqMD261aLz3@p22.sixpack.pfalz.org>
  13. Date: Fri, 16 Jun 95 18:19:22 CET
  14. X-ZC-TELEFON: V+49-89/8005856
  15. X-ZC-POST: Kennedystrasse 8; D-82178 Puchheim; Germany
  16. Path: kiste.pfalz.de!sixpack.pfalz.de
  17. From: chris@sixpack.pfalz.de (Chris Hodges)
  18. X-Mailer: MicroDot 1.10 [REGISTERED 000261] via Connectline-CLMSortin 2.18
  19. To: amos-list@access.digex.net
  20. X-Gateway: ZConnect CL kiste.pfalz.de [Connectline/AmigaOS]
  21. References: <199506142016.AA03142@dragon.mbhs.edu>
  22. Status: RO
  23. X-Status: 
  24.  
  25. achurch@dragon.mbhs.edu (Andy Church) wrote on 15.06.1995 some text
  26. under the subject Re: Music help. I can't leave this uncommentated
  27. ;-)
  28.  
  29. AC>   No, that's not how it works at all.  Think of the Amiga's memory as a
  30. AC> long row of boxes, each of which can be empty (unallocated memory) or have
  31. AC> a marble in it (allocated).
  32.  
  33. AC> [...]
  34.  
  35. Your're quite right with that, but this is not the point. The amiga
  36. exec handles the memory in so called memory lists. Theses hold the
  37. AREAs that are currently FREE (I suppose Daryll meant that with the
  38. actually wrong term 'stack'). If you require memory, exec searches
  39. this list and chops a piece off an existing free memory list. When
  40. you free it, exec just creates another memlist structure, that
  41. contains the (old) memory block. But exec has got mechanisms to aviod
  42. memory fragmentation. E.g it tries to link memory lists together if
  43. possible. As this process takes some time, it's only performed on
  44. actions like _LVOAvailMem or Memory Flushing.
  45.  
  46. Further, I think AMOS does not free the old memory block of a bank
  47. before reserving the new one, I think, it does it afterwards.
  48.  
  49. My conclusion for this problem is: Place an 'Erase' instruction and a
  50. 'dummy=Chip Free' in front of the loading process. This *could* help.
  51.  
  52. Moreover, I suggest the use of Protracker Musics, which can be saved
  53. as binary as well (and therefore could be loaded using Bload into an
  54. existing permanent 250 KB block).
  55.  
  56. I'll try to find another solution... stay tuned. ;-)
  57.  
  58. ...time passes...
  59.  
  60. Back again!
  61.  
  62. Try out this procedure! :-)
  63.  
  64. ' First set up the bank using up the most memory 
  65. Reserve As Chip Work 3,200000
  66. ' Then load the appropriate music  
  67. _LOADMUSIC["Musik/abks/LostInTime.abk"]
  68. Music 1 : Wait Key : Music Off 
  69. ' Load the next... 
  70. _LOADMUSIC["Musik/abks/Mind.abk"]
  71. Music 1 : Wait Key : Music Off 
  72. ' and another one. 
  73. _LOADMUSIC["Musik/abks/Thing.abk"]
  74. Music 1 : Wait Key : Music Off 
  75. End 
  76. Procedure _LOADMUSIC[F$]
  77.   Open In 1,F$
  78.     L=Lof(1)-20
  79.     If Length(3)<L Then Stop 
  80.     Pof(1)=20 : Rem don't load abk-header
  81.     Sload 1 To 3,L
  82.   Close 1
  83.   Loke Start(3)-8,$4D757369 : Rem changes the bank name. 
  84.   Erase 999 : Rem forces a Bank-Check call   
  85. End Proc
  86.  
  87. I hope this solves your problems.
  88.  
  89. Bye, Chris Hodges <chris@sixpack.pfalz.org>      __    __
  90. A4000/400/CD/'30er; AMOS Extension-Coder    __  ///   / / _____
  91. GCS d H s-:++ !g p? !au a18 w++ v? C+++     \\\///   / /_/ ___/ LOGOUT
  92. E---- N++ K- W------ -po+ t++@ !5 j-- R+ G?  \XX/    \__/ __/  FASCISM!
  93. tv- b+ D-- B? e+(++)* u++ h! f !r n+ !y+ AMIGA RULEZ!   \/
  94.  
  95. Affpuddle (n.)
  96.   A puddle which is hidden under a pivoted paving stone. You only
  97.   know it's there when you step on the paving stone and the puddle
  98.   shoots up your leg.
  99. (from: "The Deeper Meaning of Liff")